<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');

$keywords = $this->escape($this->state->keywords);
?>
<style>
table.current-search td,table.current-search tr{border:none;}
table.current-search{
	width:280px; 
	padding: 7px; 
	border:1px solid #968f8b; 
	margin-bottom:30px;
	-moz-border-radius: 5px ;	
}
table.current-search a{color:#685f59;}
.refine-search{
	width:280px;float:left;margin-bottom:3px;
}
.refine-search label{width:280px;float:left;margin-bottom:3px;}
.refine-search select,.refine-search  input{
	width:280px;float:left;margin-bottom:3px;
 	border: 1px solid #7f7872;
	height:30px;
	-moz-border-radius: 2px ;
}
.refine-search  input{
	width:268px;
	padding: 0 5px; 
}
.refine-search  input#keywords{
	padding: 0 5px;   
	width:238px;
	float:left;margin-bottom:3px;height:30px;
	border: 1px solid #7f7872;
	-moz-border-radius-bottomright: 0px ;
	-moz-border-radius-topright: 0px ;
}
.refine-search button{
	background:#7f7872;
	border:none;
	width:30px;float:left;margin-bottom:3px;
	padding:0 !important;
	height:32px;
	-moz-border-radius-bottomright: 2px ;
	-moz-border-radius-topright: 2px ;
}
</style>


<div style="float:left;width:290px;">
<table  class="current-search" >
  <tr>   
    <td><strong>Categories</strong></td>
  </tr>
  <tr class="current-category">
  	<td style="font-style: italic;">Research</td>
  	<td width="5%"><a href="#">x</a></td>
  </tr>
  <tr>    
    <td><strong>Keywords</strong></td>
  </tr>
  <tr class="current-keywords">
  	<td style="font-style: italic;"><?php echo $keywords;?></td>
  	<td width="5%"><a href="#">x</a></td>
  </tr>
</table>

<div class="refine-search">
<label>Refine search</label>
<select >
	<option value="">Categories</option>
	<option value="">Publications</option>	
</select>
<input id="keywords"  name="keywords" value=""><button></button>
<select >
	<option value="">Date range</option>
</select>
</div>

<div class="refine-search">
<label>Category specific</label>

<input name="publication_title" value="">
<input name="publication_investigators_author" value="">
<select >
	<option value="">Lead organisationls</option>
	<option value="">Lead organisation 1</option>
	<option value="">Lead organisation 2</option>
</select>
<select >
	<option value="">Partner organisationls</option>
	<option value="">Partner Organisation 1</option>
	<option value="">Partner Organisation 2</option>
</select>
</div>
</div>
<div class="result" style="float:left; width: 655px;">
<?php 
foreach( $this->items as $item):?>	
	<div class="result-head">
		<h3><?php echo $item->title;?></h3>
		<?php if(trim($item->journal) !=""):?>
		<br>
		<label><strong>Journal:</strong> <?php  echo $item->journal;?></label>
		<?php endif;?>
		<?php if(trim($item->year_of_publication) !=""):?>
		<br>
		<label><strong>Year of Publication:</strong> <?php  echo $item->year_of_publication;?></label>
		<?php endif;?>
		<?php if(trim($item->authors) !=""):?>
		<br>
		<label><strong>Authors:</strong> <?php  echo $item->authors;?></label>		
		<?php endif;?>
		<br><br>
		<label class="arrow-down">More details &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>		
	</div>
	<div class="result-body"></div>
	<div class="result-foot"></div>	
<?php endforeach;?>
<?php 
if(count($this->items) <1){
	echo "There's no record matched.";
}
?>
</div>